// 引用网络请求中间件
import request from '../../utils/request.js';


const API_NAME = '/user'



export default {
	/* 聊天列表*/
	chatList(status) {
		let str1 = ''
		if (status) {
			str1 = `?status=${status}`
		} else {
			str1 = ``
		}
		return request({
			url: `/consultationOrderApi/consultation/listByDoctor${str1}`,
			method: 'GET',
		})
	},



	
	chatListAll(status) {
		return request({
			url: `/consultationOrderApi/consultation/listByDoctor?status=${status}`,
			method: 'GET',
		})
	},

	listByDoctorCount(userId) {
		return request({
			url: `/consultationOrderApi/consultation/listByDoctorCount?userId=${userId}`,
			method: 'GET',
		})
	},

	listByDoctor(status = 1) {
		return request({
			url: `/consultationOrderApi/consultation/listByDoctor?status=${status}`,
			method: 'GET',
		})
	},

	userInformation(data) {
		return request({
			url: `/consultationOrderApi/userInformation`,
			method: 'POST',
			data
		})
	},

	clinicalReception(data) {
		console.log(data, "dDatadData");
		return request({
			url: `/consultationOrderApi/clinicalReception`,
			method: 'POST',
			data
		})
	},



}